home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / LINUX / LOCKD / DEBUG.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  912b  |  52 lines

  1. /*
  2.  * linux/include/linux/lockd/debug.h
  3.  *
  4.  * Debugging stuff.
  5.  *
  6.  * Copyright (C) 1996 Olaf Kirch <okir@monad.swb.de>
  7.  */
  8.  
  9. #ifndef LINUX_LOCKD_DEBUG_H
  10. #define LINUX_LOCKD_DEBUG_H
  11.  
  12. #ifdef __KERNEL__
  13.  
  14. #include <linux/sunrpc/debug.h>
  15.  
  16. /*
  17.  * Enable lockd debugging.
  18.  * Requires RPC_DEBUG.
  19.  */
  20. #ifdef RPC_DEBUG
  21. # define LOCKD_DEBUG        1
  22. #endif
  23.  
  24. #undef ifdebug
  25. #if defined(RPC_DEBUG) && defined(LOCKD_DEBUG)
  26. # define ifdebug(flag)        if (nlm_debug & NLMDBG_##flag)
  27. #else
  28. # define ifdebug(flag)        if (0)
  29. #endif
  30.  
  31. #ifdef LOCKD_DEBUG
  32. char *          nlm_procname(u32);
  33. #endif
  34.  
  35. #endif /* __KERNEL__ */
  36.  
  37. /*
  38.  * Debug flags
  39.  */
  40. #define NLMDBG_SVC        0x0001
  41. #define NLMDBG_CLIENT        0x0002
  42. #define NLMDBG_CLNTLOCK        0x0004
  43. #define NLMDBG_SVCLOCK        0x0008
  44. #define NLMDBG_MONITOR        0x0010
  45. #define NLMDBG_CLNTSUBS        0x0020
  46. #define NLMDBG_SVCSUBS        0x0040
  47. #define NLMDBG_HOSTCACHE    0x0080
  48. #define NLMDBG_ALL        0x7fff
  49.  
  50.  
  51. #endif /* LINUX_LOCKD_DEBUG_H */
  52.